﻿// (c) Copyright Microsoft Corporation.
// This source is subject to the Microsoft Public License.
// See http://www.microsoft.com/opensource/licenses.mspx#Ms-PL.
// All other rights reserved.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics.CodeAnalysis;

namespace Lilium.Web.Mvc.AjaxControlToolkit
{
	[Serializable]
	public class CascadingDropDownNameValue
	{
		[SuppressMessage("Microsoft.Design", "CA1051:DoNotDeclareVisibleInstanceFields", Justification = "Necessary for web service serialization")]
		public string name;

		[SuppressMessage("Microsoft.Design", "CA1051:DoNotDeclareVisibleInstanceFields", Justification = "Necessary for web service serialization")]
		public string value;

		[SuppressMessage("Microsoft.Design", "CA1051:DoNotDeclareVisibleInstanceFields", Justification = "Necessary for web service serialization")]
		public bool isDefaultValue;


		public CascadingDropDownNameValue()
		{
		}

		public CascadingDropDownNameValue(string name, string value)
		{
			this.name = name;
			this.value = value;
		}

		public CascadingDropDownNameValue(string name, string value, bool defaultValue)
		{
			this.name = name;
			this.value = value;
			this.isDefaultValue = defaultValue;
		}
	}
}